package com.my.chapter14;

public class practice7 {
    public static void main(String[] args) throws ClassNotFoundException {
        Command.main(new String[]{"com.my.chapter14.Candy","com.my.chapter14.Gum","com.my.chapter14.Cookie"});
    }
}

class Candy {
    static {
        System.out.println("Loading Candy"); }
}
class Gum {
    static {
        System.out.println("Loading Gum"); }
}
class Cookie {
    static {
        System.out.println("Loading Cookie"); }
}

class Command{
    public static void main(String[] args) throws ClassNotFoundException {
        for(String arg:args){
            Class.forName(arg);
        }
    }
}
